<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${actDetails.id}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">活动名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" th:value="${actDetails.name}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">活动类别：</label>
								<div class="col-sm-8">
									<input id="typeId" name="typeId" class="hidden" th:value="${actDetails.typeId}"> <input
										id="typeName" name="typeName" class="form-control" type="text" th:value="${actDetails.typeName}"
										style="cursor: pointer;" onclick="openType()"
										readonly="readonly" placeholder="活动类别">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">活动开始时间：</label>
								<div class="col-sm-8">
									<input id="startDate" name="startDate" th:value="${#dates.format(actDetails.startDate, 'yyyy-MM-dd')}" 
									class="form-control myDate" type="text" readonly>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">活动结束时间：</label>
								<div class="col-sm-8">
									<input id="endDate" name="endDate" th:value="${#dates.format(actDetails.endDate, 'yyyy-MM-dd')}" 
									class="form-control myDate" type="text" readonly>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">报名截止时间：</label>
								<div class="col-sm-8">
									<input id="signUpEndDate" name="signUpEndDate" th:value="${#dates.format(actDetails.signUpEndDate, 'yyyy-MM-dd')}" 
									class="form-control myDate" type="text" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">参加形式:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										name="joinType" value="0" th:field="*{actDetails.joinType}"/> 非比赛
									</label> <label class="radio-inline"> <input type="radio"
										name="joinType" value="1" th:field="*{actDetails.joinType}"/> 单打
									</label><label class="radio-inline"> <input type="radio"
										name="joinType" value="2" th:field="*{actDetails.joinType}"/> 组队
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">状态:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										name="status" value="1" th:field="*{actDetails.status}"/> 正常
									</label> <label class="radio-inline"> <input type="radio"
										name="status" value="-1" th:field="*{actDetails.status}"/> 已取消
									</label>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">创建人：</label>
								<div class="col-sm-8">
									<input id="createrName" name="createrName" th:value="${actDetails.createrName}" class="form-control" type="text" readonly>
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
								<textarea id="remark" name="remark" class="form-control" th:value="${actDetails.remark}" th:text="${actDetails.remark}"></textarea>
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">公告列表：</label>
								<div class="col-sm-8">
									<ul th:each="blog : ${actDetails.blogList}">
										<li style="font-size: 17px"><a href="#" th:onclick="'javascript:preview('+${blog.cid}+')'" th:text="${blog.title}"></a></li>
									</ul>
								</div>
							</div>
							<div class="form-group hidden" id="subBtn">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<div shiro:hasPermission="act:actDetails:edit">
		<script type="text/javascript">
			$("#subBtn").removeClass("hidden");
		</script>
	</div>
	<script type="text/javascript" src="/js/appjs/act/actDetails/edit.js">
	</script>
</body>
</html>
